import Request from './request.js';

const API = {
	SendSmsCode: '/app/bus/user/sms/code',
	EditPhone: '/app/bus/user/edit/phone',

};

// 发送验证码接口
export const sendSmsCode = (phonenumber) => Request.get(API.SendSmsCode, {
	params: {
		phonenumber: phonenumber // 明确传递query参数
	},
});

// 更新手机号接口
export const editPhone = (data, headers) => Request.post(API.EditPhone, data, {});